package com.dwxt.cdms.controller;

import com.dwxt.cdms.dao.BlutdruckMapper;
import com.dwxt.cdms.entity.Blutdruck;
import com.dwxt.cdms.service.HealthService;
import com.dwxt.common.base.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/cdms")
@RestController
public class TestRecordController {

    @Autowired
    private HealthService healthService;

    @Autowired
    private BlutdruckMapper blutdruckMapper;

    @RequestMapping("/test")
    public BaseResult test() {
        Blutdruck blutdruck = blutdruckMapper.selectByPrimaryKey("1301471008942854144");
        healthService.judgeIsNormalAndInsertRecord(blutdruck);
        return BaseResult.ok();
    }
}
